package com.dj.ms.event.support;

import com.dj.common.DeJiSerializable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * <br>
 * <p>事件重试任务</p>
 *
 * <br>
 *
 * @author ZJG
 * @version 1.0
 * @date 2021/7/26 下午6:09
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class EventRetryTask extends DeJiSerializable {

    private static final long serialVersionUID = 3259726551521343313L;
    /**
     * ID
     */
    private String id;

    /**
     * 发生时间
     */
    private Date createTime;

    /**
     * 事件
     */
    private Object event;

    /**
     * 类名
     */
    private String className;

    /**
     * 方法
     */
    private String method;

    /**
     * 参数类名
     */
    private String parameterClassName;

    /**
     * 异常信息
     */
    private String exceptionMessage;

    /**
     * 异常堆栈
     */
    private String exceptionStackTrace;

    /**
     * 重试次数
     */
    private int times = 10;
}
